﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Inventory_Target_List.aspx.cs" MasterPageFile="~/MasterPage.master"
    Inherits="Inventory_Target_List" %>

<%@ Register Src="~/UserControl/GridPager.ascx" TagName="GridPager"  TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>库存目标计算公式</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle">
                    库存目标计算公式列表
                </td>
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="gvChannelType" runat="server" AutoGenerateColumns="false"
                        OnRowDataBound="Grid_RowDataBound" EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true"
                        EmptyDataRowStyle-HorizontalAlign="Center" EnableEmptyContentRender="true" OnRowCommand="gvChannelType_RowCommand"
                        AllowPaging="True" GridLines="None" OnPageIndexChanging="gvChannelType_PageIndexChanging" PageSize="15">
                        <HeaderStyle CssClass="titlist" />
                        <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="Inventory_Targe_Maintain.aspx?id={0}"
                                DataTextField="CODE" HeaderText="名称" ControlStyle-Font-Underline="false"  ItemStyle-Width="10%">
                                <ControlStyle Font-Underline="False"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:BoundField HeaderText="订单间隔" DataField="LAST_COVER_INTERVAL" ItemStyle-Width="8%" />
                            <asp:BoundField HeaderText="A类补货天数" DataField="DAYS_SUPPLY_A"  ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="B类补货天数" DataField="DAYS_SUPPLY_B" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="B类补货天数" DataField="DAYS_SUPPLY_B" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="西格马因子" DataField="CSLLEVELFACTOR" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="P合计" DataField="P_TOTAL" DataFormatString="{0:N2}" ItemStyle-Width="10%" />
                            <asp:TemplateField HeaderText="有效" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center" ItemStyle-Width="6%">
                                <ItemTemplate>
                                    <b>
                                        <%# (bool)Eval("IS_VALID") ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%></b>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnEditPSKU" Text="编辑 P_SKU" runat="server" CssClass="btn3_mouseover"
                                        CommandName="EditPSKU" CommandArgument='<%# Eval("ID")%>'  ItemStyle-Width="10%"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnAssignCutomer" Text="分配客户" runat="server" CssClass="btn3_mouseover"
                                        CommandName="AssignCustomer" CommandArgument='<%# Eval("ID")%>' ItemStyle-Width="10%" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NumericFirstLast" PageButtonCount="30" />
                    </asp:GridView>
                    <uc1:GridPager ID="GridPager1" runat="server" Visible="false" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle">
                    操作选项
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <asp:Button ID="btnNew" runat="server" class="wsd_button2" Text="新　增" OnClick="btnNew_Click"
                        CausesValidation="False" />
                    &nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </div>
 </asp:Content>
